import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
const path = require('path');
import vueJsx from '@vitejs/plugin-vue-jsx';
const postcssImport = require('postcss-import');
// https://vitejs.dev/config/
export default defineConfig({
  // plugins: [vue(), vueJsx({})],
  plugins: [vue(), vueJsx({}), postcssImport()],
  resolve: {
    // 配置路径别名
    alias: {
      '@': path.resolve(__dirname, './src'),
    },
  },
});
